﻿using System;

namespace Storm.TextEditor.Interacting.Scrolling
{
	/// <summary>
	/// Represents an EventArgs inheriting class that contains information about a Scroll event.
	/// </summary>
	public class ScrollEventArgs
		: EventArgs
	{
		#region Fields

		private int deltaX = 0;
		private int deltaY = 0;

		#endregion

		#region Properties

		/// <summary>
		/// Gets or sets the delta X property of the ScrollEventArgs.
		/// </summary>
		public int DeltaX
		{
			get { return deltaX; }
			set { deltaX = value; }
		}

		/// <summary>
		/// Gets or sets the delta Y property of the ScrollEventArgs.
		/// </summary>
		public int DeltaY
		{
			get { return deltaY; }
			set { deltaY = value; }
		}

		#endregion

		/// <summary>
		/// Initializes a new instance of ScrollEventArgs.
		/// </summary>
		public ScrollEventArgs()
		{
		}
	}

	/// <summary>
	/// EventHandler for the Scroll event.
	/// </summary>
	/// <param name="sender">Sender object.</param>
	/// <param name="e">ScrollEventArgs.</param>
	public delegate void ScrollEventHandler(object sender, ScrollEventArgs e);
}
